import request from '@/utils/request'

// 添加知识
export function articleeAdd(data) {
    return request({
      url: '/cms/article',
      method: 'post',
      data: data
    })
  }

// 查询知识列表
export function articlePage(query) {
  return request({
    url: '/cms/article/page',
    method: 'get',
    params: query
  })
}


  // 修改知识
export function articlePut(data) {
    return request({
        url: '/cms/article',
      method: 'put',
      data: data
    })
  }

  // 删除知识
export function articleDel(userIds) {
  return request({
    url: '/cms/article/'+ userIds,
    method: 'delete'
  })
}

